VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "CSP3DWearPlateSym"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Attribute VB_Ext_KEY = "SP3DEqpUSSClassType" ,"SYM"
Attribute VB_Ext_KEY = "SP3DV6UpgradeSO" ,"Upgraded by Eqp SO Upgrade Wizard at 7/26/2005-9:30:43 PM"
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
'   Copyright(c)2007 Intergraph
'   All Rights Reserved
'
'   CSP3DWearPlateAsm.cls
'   ProgID:         SP3DWearPlateAsm.CSP3DWearPlateSym
'   Author:         Botao.Huo
'   Creation Date:  November 2007
'
'   Description:
'       TODO - fill in header description information
'
'   Change History:
'   dd.mmm.yyyy     who                     change description
'   -----------     ---                     ------------------
'   22.08.2007      Huo Botao(China)
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Option Explicit

Private Const MODULE = "CSP3DWearPlateSym:"  'Used for error messages

Private m_oSymbolHelper As IJSymbolHelper
Private Const E_FAIL = &H80004005

' Declaration of the User Symbol Services interface
Implements IJDUserSymbolServices

Private Sub Class_Initialize()

    Const METHOD = "Class_Initialize:"
    On Error GoTo ErrorHandler

    Dim iCount As Integer

    Set m_oSymbolHelper = New SymbolServices
    m_oSymbolHelper.ProjectName = "SP3DWearPlateAsm"
    m_oSymbolHelper.ClassName = "CSP3DWearPlateSym"

    'Inputs
    m_oSymbolHelper.NumInputs = 20
    m_oSymbolHelper.AddInputDef 1, "PlateThickness", "PlateThickness", 12.59
    m_oSymbolHelper.AddInputDef 2, "PlateCorner01X", "Plate Corner 01 X", 12.59
    m_oSymbolHelper.AddInputDef 3, "PlateCorner01Y", "Plate Corner 01 Y", 12.59
    m_oSymbolHelper.AddInputDef 4, "PlateCorner02X", "Plate Corner 02 X", 12.59
    m_oSymbolHelper.AddInputDef 5, "PlateCorner02Y", "Plate Corner 02 Y", 12.59
    m_oSymbolHelper.AddInputDef 6, "PlateCorner03X", "Plate Corner 03 X", 12.59
    m_oSymbolHelper.AddInputDef 7, "PlateCorner03Y", "Plate Corner 03 Y", 12.59
    m_oSymbolHelper.AddInputDef 8, "PlateCorner04X", "Plate Corner 04 X", 12.59
    m_oSymbolHelper.AddInputDef 9, "PlateCorner04Y", "Plate Corner 04 Y", 12.59
    m_oSymbolHelper.AddInputDef 10, "NumberOfBolts", "Number Of Bolts", 1
    m_oSymbolHelper.AddInputDef 11, "BoltDiameter", "Bolt Diameter", 0.1
    m_oSymbolHelper.AddInputDef 12, "BoltStandout", "Bolt Standout", 0.075
    m_oSymbolHelper.AddInputDef 13, "Bolt01X", "Bolt 01 X", 12.59
    m_oSymbolHelper.AddInputDef 14, "Bolt01Y", "Bolt 01 Y", 12.59
    m_oSymbolHelper.AddInputDef 15, "Bolt02X", "Bolt 02 X", 12.59
    m_oSymbolHelper.AddInputDef 16, "Bolt02Y", "Bolt 02 Y", 12.59
    m_oSymbolHelper.AddInputDef 17, "Bolt03X", "Bolt 03 X", 12.59
    m_oSymbolHelper.AddInputDef 18, "Bolt03Y", "Bolt 03 Y", 12.59
    m_oSymbolHelper.AddInputDef 19, "Bolt04X", "Bolt 04 X", 12.59
    m_oSymbolHelper.AddInputDef 20, "Bolt04Y", "Bolt 04 Y", 12.59

    'Outputs
    Dim N As Integer
    Dim OutPutNum As Integer

    OutPutNum = 10

    m_oSymbolHelper.NumOutputs = OutPutNum

    For N = 1 To OutPutNum
        m_oSymbolHelper.AddOutputDef N, "Output" & N, "Output" & N, 1
    Next

    'Aspects
    m_oSymbolHelper.NumAspects = 1
    m_oSymbolHelper.AddAspectDef 1, "SimplePhysical", "SimplePhysical", 1

    Exit Sub

ErrorHandler:
    ReportUnanticipatedError MODULE, METHOD

End Sub

Private Sub Class_Terminate()

    Set m_oSymbolHelper = Nothing

End Sub

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
'
'NOTE: The code below this line was generated by the Symbol Wizard and should not be modified
'
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Public Function IJDUserSymbolServices_InstanciateDefinition( _
       ByVal CodeBase As String, _
       ByVal defParameters As Variant, _
       ByVal ActiveConnection As Object) As Object

' This method is in charge of the creation of the symbol definition object
    Const METHOD = "IJDUserSymbolServices_InstanciateDefinition:"
    On Error GoTo Errx

    Set IJDUserSymbolServices_InstanciateDefinition = m_oSymbolHelper.InstanciateDefinition(CodeBase, defParameters, ActiveConnection)
    Exit Function

Errx:
    Err.Raise Err.Number, Err.Source & " " & METHOD, Err.Description, _
              Err.HelpFile, Err.HelpContext
End Function

Public Function IJDUserSymbolServices_GetDefinitionName(ByVal definitionParameters As Variant) As String
    Const METHOD = "IJDUserSymbolServices_GetDefinitionName:"
    On Error GoTo Errx

    IJDUserSymbolServices_GetDefinitionName = m_oSymbolHelper.ProjectName + "." + m_oSymbolHelper.ClassName
    Exit Function

Errx:
    Err.Raise Err.Number, Err.Source & " " & METHOD, Err.Description, _
              Err.HelpFile, Err.HelpContext
End Function

Public Sub IJDUserSymbolServices_InitializeSymbolDefinition(ByRef pSymbolDefinition As IJDSymbolDefinition)

    Const METHOD = "IJDUserSymbolServices_InitializeSymbolDefinition:"
    On Error GoTo Errx

    m_oSymbolHelper.InitializeSymbolDefinition pSymbolDefinition
    Exit Sub

Errx:
    Err.Raise Err.Number, Err.Source & " " & METHOD, Err.Description, _
              Err.HelpFile, Err.HelpContext
End Sub

Public Sub IJDUserSymbolServices_InvokeRepresentation(ByVal sblOcc As Object, _
                                                      ByVal repName As String, _
                                                      ByVal outputcoll As Object, _
                                                      ByRef arrayOfInputs())

    Const METHOD = "IJDUserSymbolServices_InvokeRepresentation:"
    On Error GoTo Errx

    m_oSymbolHelper.InvokeRepresentation sblOcc, repName, outputcoll, arrayOfInputs
    Exit Sub

Errx:
    Err.Raise Err.Number, Err.Source & " " & METHOD, Err.Description, _
              Err.HelpFile, Err.HelpContext
End Sub

Public Function IJDUserSymbolServices_EditOccurence(ByRef pSymbolOccurence As Object, ByVal transactionMgr As Object) As Boolean

' The definition uses the generic EditOccurrence command
    IJDUserSymbolServices_EditOccurence = False

End Function


